package com.dtp.core;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * @author evolution
 * @title: DtpProperties
 * @projectName dtp-nacos
 * @description: TODO
 * @date 2022-10-20 14:44
 */
@Data
@ConfigurationProperties(prefix = "dtp")
public class DtpProperties {
    
    private List<DtpExecutorProperties> executors;
    
    public static class DtpExecutorProperties{
        private String name;
    
        public String getName() {
            return name;
        }
    
        public void setName(String name) {
            this.name = name;
        }
    
        public Integer getCorePoolSize() {
            return corePoolSize;
        }
    
        public void setCorePoolSize(Integer corePoolSize) {
            this.corePoolSize = corePoolSize;
        }
    
        public Integer getMaximumPoolSize() {
            return maximumPoolSize;
        }
    
        public void setMaximumPoolSize(Integer maximumPoolSize) {
            this.maximumPoolSize = maximumPoolSize;
        }
    
        private Integer corePoolSize = 1;
        private Integer maximumPoolSize =10;
    }
   
}
